package com.holyant.goods.dto;

import com.ruoyi.common.core.domain.BaseDto;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 经营类目明细对象
 *
 * @author bryle
 * @date 2022-08-16
 */
@Data
public class GdsBusinessCategoryItemDto extends BaseDto {

    private static final long serialVersionUID = 1L;

    /** 经营类目ID */
    private Long busCategoryId;
    /** 经营类目名称 */
    private String busCategoryName;
    /** 商品ID */
    @NotNull(message = "商品ID不能为空")
    private Long goodsId;
    /** 商品编码 */
    private String goodsCode;
    /** 商品名称 */
    @NotEmpty(message = "商品名称不能为空")
    private String goodsName;
    /** 商品条码 */
    @NotEmpty(message = "商品条码不能为空")
    private String goodsBarcode;

    private Long ver;
}
